﻿using LaunchAllaround.DesignPattern.MVC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace LaunchAllaround.Configuration
{
    /// <summary>
    /// Logique d'interaction pour ConfigurationUI.xaml
    /// </summary>
    public partial class ConfigurationUI : UserControl, View<ConfigurationModel>, Controller<ConfigurationModel>
    {
        public ConfigurationUI()
        {
            this.model = ConfigurationModel.myself;
            InitializeComponent();
        }

        private Model<ConfigurationModel> model;


        public void Refresh(RefreshEvent<ConfigurationModel> ev)
        {
            // listen to the model
        }

        public Model<ConfigurationModel> GetModel()
        {
            return this.model;
        }

        public void SetModel(Model<ConfigurationModel> model)
        {
            this.model = model;
        }
    }
}
